﻿@model IEnumerable<EC18_ESHOP.Models.CATEGORY>

<div class="btn-group">

    <button type="button" class="btn btn-default dropdown-toggle" id="navAllCatalog" data-toggle="dropdown">
        Danh Mục Sản Phẩm
                            <span class="caret"></span>
    </button>
    <ul class="dropdown-menu multi-level" role="menu" style="">
        @foreach (var item in Model)
        {
            if (@item.CATEGORY1.Count > 0)
            {
                <li><a href="~/Category/Index/@item.Category_Id">@item.CategoryName</a></li>
                foreach (var childCate in @item.CATEGORY1)
                {
                    <li><a href="~/Category/Index/@childCate.Category_Id" style="margin-left: 10px">@childCate.CategoryName</a></li>
                }
                <li class="divider"></li>
            }
        }
    </ul>
</div>
